package com.googlecode.connectlet.crypto.random;

import java.security.SecureRandomSpi;

public final class RC4PrngSecureRandom extends SecureRandomSpi {
	private static final long serialVersionUID = 1L;

	private static RC4PrngCipher cipher = RC4PrngCipher.getInstance();

	@Override
	protected byte[] engineGenerateSeed(int numBytes) {
		return cipher.output(numBytes);
	}

	@Override
	protected void engineNextBytes(byte[] bytes) {
		cipher.output(bytes);
	}

	@Override
	protected void engineSetSeed(byte[] seed) {/**/}
}